<html>
<head>
	<title><?php echo isset($title) ? $title : 'Customer Relationship Management'; ?></title>
	<link rel="shortcut icon" href="<?php echo base_url().'assets/images/fav_icon.png';?>" />
	<style type="text/css">@import url("<?php echo base_url() . 'assets/css/admin.css'; ?>");</style>
	<style type="text/css">@import url("<?php echo base_url() . 'assets/css/timePicker.css'; ?>");</style>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>assets/css/teacher.css" /> 
	<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>assets/css/jquery-ui.backend.custom.css" />
	<script type="text/javascript" src="<?php echo base_url() ?>assets/js/jquery.js"></script>
	<script type="text/javascript" src="<?php echo base_url() ?>assets/js/jquery-ui.backend.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url() ?>assets/js/backend.js"></script>
	<script type="text/javascript" src="<?php echo base_url() ?>assets/js/jquery.timePicker.js"></script>

</head>
<body>
<div id="container">
	<div id="menu">
		<?php 
			
			if (isset($subject_total) && $subject_total >0)
				$this->load->view('teacher/_menubar');
		?>
	</div>
	<div id='subject_name'>
		<? echo isset($_SESSION['subject_name']) ? $_SESSION['subject_name'] : 'Bidang Studi Belum Ada' ?>
	</div>  
	<hr>
	
	<div id="content">
		<? $this->load->view('teacher/'.$mainview);?>
	</div>
	
	<?php if (isset($links) && !empty($links)) : ?>
	<div id="links">
		<p id="bottom_link">
		<?
			foreach($links as $link) {
				echo $link . ' ';
			}
		?>
		</p>
	</div>
	<?php endif ?>
	
	<div id="footer">
		Copyright &copy; 2013 Labkom STIKOM School Partnership (SSP) St. Louis 1
	</div>
</div>

</body>
</html>
